package com.lxyk.service.impl;

import com.github.pagehelper.PageInfo;
import com.lxyk.mapper.WaterDetailsMapper;
import com.lxyk.service.WaterDetailsService;
import com.lxyk.vo.WaterDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WaterDetailsServiceImpl implements WaterDetailsService {
    @Autowired
    private WaterDetailsMapper waterDetailsMapper;

    @Override
    public PageInfo<WaterDetails> querySendWaterDetails(WaterDetails waterDetails, Integer pageNum, Integer pageSize) {
        List<WaterDetails> waterDetailsList = waterDetailsMapper.querySendWaterDetails(waterDetails);
        return new PageInfo<>(waterDetailsList);
    }
}
